home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
fish
/
726-750
/
750
/
sizew
/
sizew.doc
< prev
next >
Wrap
Text File
|
1995-03-18
|
6KB
|
218 lines
SizeW Version 1.5
written 1992
by H.P.G
FREEWARE VERSION
SizeW needs at minimum OS 2.xx Version 37.xx to run.
SizeW is a tool, which move and sizes the current active window with
given Coords.
You can specify the Coords via commandline. Or you can specify a file
which includes the Coords.
There is no need to write the file by yourselves, because on this disk
there should be also the directory SaveW which does exactly this; it
writes the coords to a specified file.
if you`re interrested in SizeW you should also try out SaveW.
Legal Stuff:
This program and all files come with it, also the docfiles, are
released as FREEWARE.
this means:
everybody may use SizeW,
everybody may copy SizeW, if:
1. You copy all included files, see list at the end of the
doc file.
2. No changes are made, this means the program and all
included files must stay in the original form.
Exception: you may archieve it; but in this case you
must also archieve the whole package.
3. If you recompile it, you have to include a notice to
the original author. If you also want to (re)distribute
in any new form you have to send me a copy.
4. You may not sell SizeW.
Execption: you`re allowed to take a small copy fee
which should not extend 5US$.
5. If you want to include SizeW
or one of the included files as a part of a commercial
package, you must have written permission of the
author (address see below).
I take no warranty or garanty for the function of this program.
The whole risk of using SizeW stays only by the user.
Description:
SizeW has the following Parameters:
Syntax: SizeW [Config=f/K] [Left=X/N] [Top=Y/N] [Width=W/N] [Height=H/N]
with
Config | f String
specifies the file which holds the coords you want to change the
window to. If you do not specify any argument to SizeW , it looks
for the coords in the 's:window.config' file.
Ex: 1> sizew f Ram:FCoords
( assuming the file Ram:FCoords exists)
Left | X Number
If you specify left or X following by a number SizeW tries to move
the window`s leftEdge to this X-coord.
Em: 1> sizew X 100
(SizeW moves the window to the coord 100 pixels from left screen edge)
Top | Y Number
If you specify Top or Y following by a number SizeW tries to move the
window`s TopEdge to this Y-coord.
Em: 1> sizew Y 80
( SizeW moves the window to the coord 80 pixels from the top )
WIDTH | W Number
If you specify Width or W following by a number SizeW tries to size
the window to the given width.
Em: 1> sizew W 320
( SizeW sizes the width of the window to 320 pixels )
HEIGHT | H Number
If you specify HEIGHT or H following by a number SizeW tries to size
the window to the given height.
Em: 1> sizew H 200
( SizeW sizes the height of the window to 200 pixels )
_
|_|
If you do not specify any arguments to SizeW changes the currently
active window to size an position to the values spcified in
s:window.config.
You can specify all arguments in any order.
General:
In case you specify wrong parameters:
Em:
sizew W 1000 H 1000
With a standart NSTC-screen you got 640 x 200 pixels. In the example
above the specified values are impossible. Intuition of the new OS
2.xx Kickstart takes care about this. It corrects the values, so no
errors occures. In the example above the window will be moved to the
coords 0 0 and will then be sized to the maximal size.
Thats the same with too small values. If these values are smaller
than the for each window defined minsizes Intuition takes care of
this.
Em:
SizeW W 0 H 20
in a normally Shell-window the size of the window will be changed to
the minimum.
What happens if you specify wrong values for the X or Y coords too ?
Intuition sets its priority to the width and height instead of the
left or rightedge of the window.
Em:
SizeW X 300 Y 20 W 1000
So the window is not be moved to the coords 300 20 , instead the
window is moved to X=0 and Y=20 then the width of the window is
sized to the maximum. The height won`t be changed.
Tips:
If you want to get the same sizes of a shell-window each time you
start a new shell you must not do this by sizing the window with the
mouse and moving it to the coords you wish, but you can add the
following line in your file 's:Shell-Startup':
folgende Zeilen ein:
SizeW ; this chages the shell window to the in the file
; s:window.config given values each time a newshell
; opens up. see also SaveW
very useful are also the following aliases:
alias Full SizeW W 1000 H 1000
; sizes the Shell-window to its maximum
alias Small SizeW W 0 H 0
; sizes the Shell-window to its minimum
to this there is the SaveW directory on this disk with some
other useful examples.
The END
If you find any bugs please let me know.
Also serious critic and/or ideas are wellcomed.
Have fun ...
my address:
Hans-Peter Guenther
Gruener Weg 5
W-3501 Fuldatal 2
Germany
your H.P.G
List of files:
(If you miss one of the following files your release is incomplete)
SizeW : the binary
SizeW.info
SizeW.doc : english manual
SizeW.doc.info
SizeW.dok : german manual
SizeW.dok.info